package com.diyiliu.plugin.model;

/**
 * Description: SendMsg
 * Author: DIYILIU
 * Update: 2018-06-26 16:07
 */
public class SendMsg {
    private Integer serial;

    private Integer cmd;

    private String key;

    private String device;

    private byte[] content = new byte[0];

    public Integer getCmd() {
        return cmd;
    }

    public void setCmd(Integer cmd) {
        this.cmd = cmd;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public Integer getSerial() {
        return serial;
    }

    public void setSerial(Integer serial) {
        if (serial == null){
            serial = 1;
        }
        this.serial = serial;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
